package com.mbc.rmt.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.mbc.common.param.CriteriaRMParams;
import com.mbc.rmt.data.SavingDataList;
import com.mbc.rmt.entities.Saving;
import com.mbc.rmt.entities.SavingBalanceRpt;
import com.mbc.rmt.entities.SavingLedgerRpt;
import com.mbc.rmt.entities.SavingRpt;

public interface SavingDAO {

	public void create(Saving entity) throws SQLException;

	public Saving find(long key) throws SQLException;
	
	public void update(Saving entity) throws SQLException;
	
	public void delete(Saving entity) throws SQLException;
	
	public Saving getSaving(Saving entity) throws SQLException;
	
	public SavingDataList findSaving(CriteriaRMParams cri)
			throws SQLException;
	ResultSet prepareSavingReport(SavingRpt info)throws SQLException;
	
	ResultSet prepareSavingBalanceReport(SavingBalanceRpt info)throws SQLException;
	
	ResultSet prepareSavingLedgerReport(SavingLedgerRpt info)throws SQLException;
}
